<?php

/**
 * Cadusuarios form.
 *
 * @package    SCBE
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class CadusuariosForm extends BaseCadusuariosForm
{
  public function configure()
  {   
      //Deixa o idusuarios escondido
      $this->widgetSchema['idusuarios'] = new sfWidgetFormInputHidden();
    
      //Login
      $this->widgetSchema['login']->setLabel('Login');
    
      //CPF
      $this->widgetSchema['cpf']->setLabel('CPF');
    
      //Nome
      $this->widgetSchema['nome']->setLabel('Nome');
      $this->widgetSchema['nome']->setAttribute('size','45');
      $this->widgetSchema['nome']->setAttribute('maxlength','45');
      
      //Email
      $this->widgetSchema['email']->setLabel('Email');
      $this->widgetSchema['email']->setAttribute('size','45');
      $this->widgetSchema['email']->setAttribute('maxlength','45');
      
      //Cargo
      $this->widgetSchema['cargo']->setLabel('Cargo');
      
      //Senha
      $this->widgetSchema['senha'] = new sfWidgetFormInputPassword();
      
      //Impede que os campos extras sejam enviados para form
      $this->validatorSchema->setOption('allow_extra_fields', true);
      $this->validatorSchema->setOption('filter_extra_fields', false);
  }
}
